#include "REG52.H"
sbit MOP = P1^0;
#define DC_Motor_Run_Time 5000
void delay(unsigned int x) //ms  1s = 1000ms
{
    unsigned int i,j;
    for ( i = x; i > 0 ; i--)
    {
        for ( j = 110; j > 0 ; j-- );
    }
}
void main()
{
    MOP = 1;
    delay(DC_Motor_Run_Time);
    MOP = 0;
    while (1)
    {

    }
    
}
